home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 013a / dmplas11.zip / DMPLAS.DOC < prev    next >
Text File  |  1991-11-17  |  33KB  |  698 lines

  1.                               ______________
  2.                              /              \
  3.                             /                \
  4.                            |    o         o   |
  5.                            |                  |
  6.                            |         ^        |
  7.                            |   *           *  |
  8.                            |     \_______/    |
  9.                             \                /
  10.                              \______________/
  11.         
  12.         
  13.                                   DMPLAS
  14.         
  15.                                 Written by
  16.                              Martin L. Waldman
  17.         
  18.                             A program to convert
  19.                          Dot Matrix Printer Controls
  20.                       to Laser Printer Control Sequences
  21.         
  22.                                 Version 1.1
  23.                               Copyright 1991
  24.                             All rights reserved
  25.         
  26.         
  27.                              TABLE OF CONTENTS
  28.                                                           Page
  29.                PART 1. OVERVIEW
  30.                     1.1  Introduction ..................... 1
  31.                     1.2  Installing DMPLAS ................ 1
  32.                     1.3  Page Size and Printer Modes ...... 2
  33.                     1.4  Laser Printer Controls ........... 2
  34.                     1.5  Printer Reset..................... 3
  35.                     1.6  Printing a File .................. 3
  36.                     1.7  Testing DMPLAS ................... 4
  37.         
  38.         
  39.                PART 2. CONVERTED PRINTER CONTROLS
  40.                     2.1  Pitch Control .................... 5
  41.                     2.2  Print Style ...................... 5
  42.                     2.3  Special Effects .................. 6
  43.                     2.4  Line Spacing ..................... 6
  44.                     2.5  Vertical Movement ................ 6
  45.                     2.6  Margin Control ................... 7
  46.                     2.7  Horizontal Movement .............. 7
  47.                     2.8  Dot Graphics ..................... 7
  48.         
  49.         
  50.                PART 3. PRINTER CONTROL CODE TABLE           8
  51.         
  52.                PART 4. SOME HINTS AND TIPS
  53.                     4.1  Screen Dumps .................... 11
  54.                     4.2  Line drawing characters ......... 11
  55.                     4.3  Using DMPLAS with a spooler ..... 12
  56.                     4.4  Using DMPLAS on a LAN ........... 12
  57.                     4.5  Using DMPLAS with Windows 3 ..... 12
  58.                            DMPLAS  Version 1.1                          1
  59.     ======================================================================
  60.  
  61.     PART 1. OVERVIEW
  62.     
  63.     1.1  INTRODUCTION
  64.     
  65.     Some of your software may have the capability of being installed for a 
  66.     laser printer -- but what about the other stuff ?  The programs that 
  67.     you've used so often that your fingers do the walking by themselves -- 
  68.     especially your favorite graphics programs designed for a dot matrix 
  69.     printer ?
  70.     
  71.          DON'T  THROW  THEM  AWAY  --  Smile  --  now you have DMPLAS !
  72.     
  73.     Now you can make your laser printer hum along using software designed 
  74.     for a dot matrix printer -- just install DMPLAS and activate it when 
  75.     you need it.
  76.     
  77.     DMPLAS is a program that converts dot matrix printer control 
  78.     characters (00h to 1Fh) and printer control escape sequences (1Bh + 
  79.     character string) to the equivalent printer control commands used by 
  80.     HP LaserJet compatible printers.
  81.     
  82.     The program is written in 8088/8086 assembly language and will run on 
  83.     any computer system that operates using DOS 2.x or higher.
  84.     
  85.     Part 2 of this manual lists the dot matrix printer controls, by 
  86.     functional group, that are converted to equivalent laser printer 
  87.     controls by DMPLAS.
  88.     
  89.     Part 3 contains a complete list, in ASCII value order, of the control 
  90.     codes and escape sequences that DMPLAS recognizes and evaluates. Those 
  91.     that have no equivalents or have conflicting meanings are trapped so 
  92.     that your documents don't get messed up and your laser printer doesn't 
  93.     start to spit paper.
  94.     
  95.     
  96.     1.2  INSTALLING DMPLAS
  97.     
  98.     DMPLAS can be used in two different ways -- as a permanently installed 
  99.     TSR (less than 6K) that can be activated and deactivated, and to print 
  100.     files containing printer control data and text (see paragraph 1.6).
  101.     
  102.     To install DMPLAS as a TSR, the command line to be placed in your 
  103.     AUTOEXEC.BAT file must contain the drive and pathname where DMPLAS is 
  104.     stored plus one of the following:
  105.     
  106.             "DMPLAS /A" -- installs and/or activates DMPLAS.
  107.             "DMPLAS /D" -- installs and/or deactivates DMPLAS.
  108.     
  109.     The first time either command line is executed, DMPLAS will be 
  110.     installed as a TSR and remains in memory until the system is rebooted.
  111.     
  112.     Subsequent entry of a command line will only turn DMPLAS on or off -- 
  113.     it will not be removed from memory and not be installed a second time.
  114.     Using /A switch with additional parameters (see 1.3 below) changes the 
  115.     parameters in the installed program. The /D switch only deactivates.
  116.     2                       DMPLAS  Version 1.1 
  117.     ======================================================================
  118.  
  119.     1.3  PAGE SIZE AND PRINTER MODES
  120.     
  121.     Laser printers print on only 10" (e.g. 60 lines at 6 lpi) of an 11" 
  122.     letter size page. If your software expects to use all 11" (66 lines), 
  123.     enter "DMPLAS /AF" (full) as an intitial or subsequent command line.
  124.     
  125.     DMPLAS then adjusts the space between lines (leading) to accomadate 
  126.     the extra lines -- the adjustment works with whatever line spacing you 
  127.     have programmed (i.e. 8 lpi yields 88 lines, etc).
  128.     
  129.     To return to a normal (10") page, enter the command  "DMPLAS /AN".
  130.     
  131.     The page size adjustment is not effective until DMPLAS receives a line 
  132.     spacing or printer reset command (ESC '@') --  see para. 1.5
  133.     
  134.     Many dot matrix printers have a set of mechanical (DIP) switches or 
  135.     setup panel buttons that set power-on defaults, some of which can be 
  136.     changed by software commands -- see your printer manual.
  137.     
  138.     Often one of the switches sets the printer to either the so-called 
  139.     Standard (Epson) mode or the so-called IBM (Proprinter) mode and 
  140.     cannot be changed by software. The exact way in which some of the 
  141.     print controls from these printers work is different depending on how 
  142.     the mode switch has been set -- again see your printer manual.
  143.     
  144.     DMPLAS defaults to the Standard mode. Where no conflict exists between 
  145.     the two modes, DMPLAS ignores the mode. In Parts 2 and 3 those 
  146.     commands that depend on the mode are flagged.
  147.     
  148.     You can set the IBM mode by an additional parameter to the /A switch 
  149.     either at the initial command in your AUTOEXEC.BAT file or when 
  150.     issuing subsequent activation command lines. The formats are:
  151.     
  152.        "DMPLAS /ANI"   sets IBM mode and normal page (10")
  153.        "DMPLAS /AFI"   sets IBM mode and full page (11")
  154.     
  155.     (The page size parameter must be included for the mode to be set)
  156.     
  157.     On some printers setting the mode to IBM causes the printer to accept
  158.     FS (1Ch) as a substitute for ESC (1Bh) in some control sequences -- 
  159.     the remainder of the sequence is the same. DMPLAS therefore also 
  160.     accepts FS as being the same as ESC without further ado.
  161.     
  162.     
  163.     1.4  LASER PRINTER CONTROLS
  164.     
  165.     DMPLAS can send unaltered control sequences directly to the laser 
  166.     printer. To do so send the leading ESC character (1Bh) twice followed 
  167.     by the rest of the sequence.                           ~~~~~
  168.     
  169.     For example, to set the end-of-line wrap around function you would 
  170.     normally send ESC + the characters "&s0C" to the laser printer. If 
  171.     DMPLAS is actvated you can send ESC + ESC + "&s0C" to achieve the same 
  172.     result. See DLTEST-4 for other examples.
  173.     
  174.                            DMPLAS  Version 1.1                          3
  175.     ======================================================================
  176.  
  177.     1.5  PRINTER RESET
  178.     
  179.     ESC  '@' (Reset printer) is used by most dot matrix printers to reset 
  180.     the printer to the power-on status defined by the settings of 
  181.     mechanical (DIP) switches.
  182.     
  183.     Some word processors take advantage of this by sending ESC '@' and 
  184.     other condition resets at the beginning of a document to establish a 
  185.     known base from which to proceed with formatting commands.
  186.     
  187.     To emulate ESC '@', DMPLAS sets the following default parameters:
  188.     
  189.           Pitch                  Pica  (10 cpi)
  190.           Line Spacing           1/6"  (6 lpi)
  191.           Auto Linefeed          off    
  192.           Left/Right margins     cleared
  193.           Superscript/Subscript  off
  194.           Horizontal Tabs        set to every 8 columns
  195.     and a carriage return (0Dh) is sent to the printer.
  196.     
  197.     The mode (STD or IBM) and page factor (10" or 11") are NOT changed.
  198.     
  199.     To avoid the ejection of an empty sheet of paper from the laser 
  200.     printer, DMPLAS does NOT send the laser printer soft reset (ESC 'E').
  201.     
  202.     You may eject the current page by entering the command "DMPLAS /F". 
  203.     This will send a formfeed (0Ch) to the printer whether or not DMPLAS 
  204.     is active.
  205.     
  206.     
  207.     1.6  PRINTING A FILE
  208.     
  209.     Some programs can create ASCII files that contain both the text to be 
  210.     printed and the printer control data to format the printout. Such 
  211.     files can be printed on your laser printer even if DMPLAS has not been 
  212.     installed or activated.
  213.     
  214.     Enter the folllowing command (entries inside brackets are optional):
  215.     
  216.          "[drive:][\pathname\]DMPLAS /P [drive:][\pathname\]filename.ext"
  217.     
  218.     You may also use both additional parameters with the /P command to set 
  219.     the page size and mode. Note however that if DMPLAS has been installed 
  220.     and activated, the TSR page size and mode takes precedence.
  221.     
  222.     Before printing the file a printer reset is performed and the laser 
  223.     end-of-line wrap and perforation skip functions are activated. The 
  224.     laser printer soft reset (ESC 'E') is sent at the end.
  225.  
  226.     NOTE: DMPLAS does NOT check printer status, neither as a TSR nor as a 
  227.     file printer, but does return a normal status byte. You should make 
  228.     sure your printer is on line and ready.
  229.     4                       DMPLAS  Version 1.1 
  230.     ======================================================================
  231.  
  232.     1.7  TESTING DMPLAS
  233.     
  234.     So that you can see if DMPLAS works well with your computer and your 
  235.     printers, we have included a series of files on the distribution 
  236.     diskette that you can use to check it out.
  237.     
  238.     DLTEST-W.WS4 is a document written in Wordstar Version 4 to be printed 
  239.     on a dot matrix printer. DLTEST-W.PRN is the result of redirecting the 
  240.     printer output to a file -- it contains both formatting commands and 
  241.     document text.
  242.     
  243.     The other test files are named "DLTEST-n" (n = a number or letter). 
  244.     There are two files each with the same name. DLTEST-n.BAS is the Basic 
  245.     program that was used to create DLTEST-n.PRN -- the file that contains 
  246.     both the printer controls and the text.
  247.     
  248.     Before you install DMPLAS you may want to try the following:
  249.     
  250.        1. Put your dot matrix printer on line, and at the DOS prompt enter
  251.                    ~~~~~~~~~~                  "COPY DLTEST-n.PRN PRN"
  252.     
  253.        2. Now put your laser printer on line, and at the DOS prompt enter
  254.                        ~~~~~                  "DMPLAS /P DLTEST-n.PRN"
  255.     
  256.     If you have installed and activated the TSR, you can print to your 
  257.     laser printer with the command   "COPY DLTEST-n.PRN PRN"
  258.     
  259.     The test files contain examples of the more commonly used controls. 
  260.     All use the normal page length and standard mode.
  261.     
  262.         DLTEST-1     Print Pitch, Style, and Special Effects
  263.         DLTEST-2     The Master Print Mode
  264.         DLTEST-3     Line Spacing
  265.         DLTEST-4     Left and Right Margins
  266.         DLTEST-5     Vertical and Horizontal Movement
  267.         DLTEST-6     Horizontal Tab Commands and Backspace
  268.         DLTEST-F     Dot Graphics - grey scale patterns
  269.         DLTEST-G     Dot Graphics - cross hatch pattern
  270.                            DMPLAS  Version 1.1                          5
  271.     ======================================================================
  272.  
  273.     PART 2. CONVERTED PRINTER CONTROLS
  274.     
  275.     The following is a list of the dot matrix printer controls, by 
  276.     functional group, that are converted to equivalent laser printer 
  277.     controls by DMPLAS. The controls that depend on mode are indicated by 
  278.     <S> or <I>. All others are available in both modes.
  279.     
  280.     The test files listed demonstrate some of the controls available in 
  281.     standard mode.
  282.     
  283.     
  284.     2.1  PITCH CONTROL
  285.     
  286.     DMPLAS pitch controls attempt to use Courier fonts -- Pica translates 
  287.     to 10 cpi/12 pts, Elite to 12cpi/10pts, and Condensed to 16cpi/8pts. 
  288.     If you are not happy with the appearance provided by your current 
  289.     laser printer fonts see FONT.DOC (in DMPLASFN.ZIP) for alternatives.
  290.     
  291.      The standard print pitch controls are demonstrated in DLTEST-1
  292.     
  293.         SO              Expanded print - one line
  294.         SI              Condensed print
  295.         DC2         <S> Cancel condensed
  296.         DC2         <I> Set 10 cpi (Pica)
  297.         DC4             Cancel one line expanded
  298.         ESC  SO         Expanded print - one line
  299.         ESC  SI         Condensed print
  300.         ESC  DC2        Cancel condensed
  301.         ESC  ':'        Set 12 cpi (Elite)
  302.         ESC  'M'        Set pitch to Elite (12 cpi)
  303.         ESC  'P'    <S> Set pitch to Pica (10 cpi)
  304.         ESC  'W' 1      Expanded print on    
  305.         ESC  'W' 0      Expanded print off   
  306.         ESC  'g'        Set 15 cpi
  307.     
  308.     
  309.     2.2  PRINT STYLE
  310.     
  311.      The standard print style commands are demonstrated in DLTEST-1
  312.     
  313.         ESC  '%G'   <I> Begin Italics
  314.         ESC  '%H'   <I> End Italics
  315.         ESC  '4'    <S> Select italic characters
  316.         ESC  '5'        Cancel italic characters
  317.         ESC  'E'        Emphasized printing on
  318.         ESC  'F'        Emphasized printing off
  319.         ESC  'G'        Boldface on
  320.         ESC  'H'        Boldface off
  321.         ESC  'P' 1  <I> Select proportional printing
  322.         ESC  'P' 0  <I> Cancel proportional printing
  323.         ESC  'p' 1      Select proportional printing
  324.         ESC  'p' 0      Cancel proportional printing
  325.     6                       DMPLAS  Version 1.1 
  326.     ======================================================================
  327.  
  328.     2.3  SPECIAL EFFECTS
  329.     
  330.      These special effect commands are demonstrated in DLTEST-1
  331.     
  332.         ESC  '-' 1      Underline on
  333.         ESC  '-' 0      Underline off
  334.         ESC  'S' 0      Set superscript on
  335.         ESC  'S' 1      Set subscript on
  336.         ESC  'T'        Set superscript/subscript off
  337.     
  338.         ESC  '!' n  <S> Set Master Print Mode n   command is explained and
  339.                                                  demonstrated in DLTEST-2
  340.      Not demonstrated    
  341.         ESC  'I' n  <I> Set Master print mode n
  342.     
  343.     
  344.     2.4  LINE SPACING
  345.     
  346.      The standard line spacing commands are demonstrated in DLTEST-3
  347.     
  348.         ESC  '%8' n   <I> Begin n/360 line spacing
  349.         ESC  '+' n    <I> Begin n/360 line spacing
  350.         ESC  '0'          Set line spacing to 1/8"
  351.         ESC  '1'          Set line spacing to 7/72"
  352.         ESC  '2'      <S> Set line spacing to 1/6"
  353.         ESC  '2'      <I> Execute  ESC 'A' n
  354.         ESC  '3' n        Set line spacing to n/216"
  355.         ESC  'A' n        Set line spacing to n/72"
  356.         ESC  'A' n    <S> Set line spacing n/72" immediate
  357.         ESC  'A' n    <I> Set line spacing n/72" for ESC '2'
  358.     
  359.      Not demonstrated    
  360.         ESC  '[' n    <S> Begin n/360 line spacing
  361.     
  362.     
  363.     2.5   VERTICAL MOVEMENT
  364.     
  365.      These vertical movement commands are demonstrated in DLTEST-5
  366.     
  367.         LF                Line feed         
  368.         FF                Form feed         
  369.         ESC  LF           Reverse Linefeed
  370.         ESC  FF           Reverse Formfeed
  371.         ESC  'J' n        Onetime linefeed of n/216"
  372.         ESC  'f' 1 n      Set print position to current line + n
  373.     
  374.      Not demonstrated
  375.         ESC  '%4' n   <I> Onetime n/360 line feed
  376.         ESC  '5' 1        Auto Linefeed on 
  377.         ESC  '5' 0        Auto Linefeed off
  378.         ESC  'j' n    <S> Send one reverse LF n/216"
  379.                            DMPLAS  Version 1.1                          7
  380.     ======================================================================
  381.  
  382.     2.6   MARGIN CONTROL
  383.     
  384.      These margin control commands are demonstrated in DLTEST-4
  385.         ESC  'l' n       Set left margin to column n 
  386.         ESC  'Q' n   <S> Set right margin  col n    
  387.         ESC  'X' l r     Set left & right margins    
  388.     
  389.      This commands is demonstrated in DLTEST-3
  390.         ESC  'N' n       Set bottom margin n lines
  391.  
  392.      Not demonstrated
  393.         ESC  'O'         Cancel top & bottom margins    
  394.     
  395.     
  396.     2.7  HORIZONTAL MOVEMENT
  397.     
  398.      These horizontal commands are also demonstrated in DLTEST-5
  399.         ESC  '$' n1 n2       Absolute horizontal position
  400.         ESC  '\' n1 n2   <S> Relative horizontal position
  401.         ESC  'f' 0 n         Set print position to col n
  402.     
  403.     These are demonstrated in DLTEST-6 (new in DMPLAS 1.1)
  404.         BS                   Backspace
  405.         HT                   Horizontal tab
  406.         ESC  'D' n1 n2 ...0  Set variable horizontal tabs at n1,n2,etc. 
  407.         ESC  'e' 0 n         Set horizontal tabs at every n columns
  408.  
  409.      Not demonstrated
  410.         ESC  'd' n1 n2   <I> Relative horizontal position
  411.     
  412.     
  413.     2.8  DOT GRAPHICS
  414.     
  415.     Since dot matrix and laser printers differ in the way 8 bit dot 
  416.     graphics (raster graphics) are printed, some adjustments are made by 
  417.     DMPLAS. Horizontal spacing is maintained by adding dots to make it 
  418.     equivalent. Vertical spacing of 8/72" per line is maintained by 
  419.     duplicating dot rows on the laser printer.
  420.     
  421.      These commands are demonstrated in DLTEST-F and DLTEST-G
  422.     
  423.         ESC  'K' n1 n2 m1 m2 ...   Normal density (60 dpi)
  424.         ESC  'L' n1 n2 m1 m2 ...   Double density (120 dpi)
  425.         ESC  'Y' n1 n2 m1 m2 ...   Double density/double speed (120 dpi)
  426.         ESC  'Z' n1 n2 m1 m2 ...   Quadruple density (240 dpi)          
  427.     
  428.         ESC  '*' n n1 n2 m1 m2 ...   Select graphics mode n where
  429.              n = 0 = Normal density (60 dpi)
  430.                  1 = Double density (120 dpi)
  431.                  2 = Double density/double speed (120 dpi)
  432.                  3 = Quadruple density (240 dpi)
  433.                  4 = Semi-double density (80 dpi)
  434.                  5 = Plotter graphics (72 dpi)
  435.                  6 = CRT graphics (90 dpi)
  436.                  7 = Double density Plotter (144 dpi)
  437.     8                       DMPLAS  Version 1.1 
  438.     ======================================================================
  439.  
  440.     PART 3. PRINTER CONTROL CODE TABLE
  441.     
  442.     The following table lists, in ASCII value order, all of the control 
  443.     codes and escape sequences that are recognized by DMPLAS.
  444.     
  445.     The symbols in the Flag column indicates what action is taken when 
  446.     translating the code;  * = trapped or > = translated to equivalent 
  447.     laser sequence. Actions dependent on the mode are prefixed with
  448.     S (Std) or I (IBM).
  449.     
  450.         Code/Sequence     Flag  Printer Function Performed
  451.         ~~~~~~~~~~~~~     ~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  452.         BEL                 *   Sound printer bell
  453.         BS                  >   Backspace
  454.         HT                  >   Horizontal tab
  455.         LF                  >   Line feed
  456.         VT                  *   Vertical tab
  457.         FF                  >   Form feed
  458.         CR                  >   Carriage return
  459.         SO                  >   Expanded print - one line
  460.         SI                  >   Condensed print on
  461.         DC1                 *   Set printer on line
  462.         DC2                S>   Cancel condensed
  463.         DC2                I>   Set 10 cpi (Pica)
  464.         DC3                 *   Set printer off line
  465.         DC4                 >   Cancel one line expanded
  466.         CAN                 *   Cancel a line (clear buffer)
  467.         DEL                 *   Delete last character sent
  468.         ESC  LF             >   Reverse Linefeed
  469.         ESC  FF             >   Reverse Formfeed
  470.         ESC  SO             >   Expanded print - one line
  471.         ESC  SI             >   Condensed print on
  472.         ESC  DC2            >   Cancel condensed
  473.         ESC  EM  n          *   Sheet feeder commands
  474.         ESC  EM  'T' n      *   Set print start on sheet feeder
  475.         ESC  ESC            >   DMPLAS bypass - sends ESC once 
  476.         ESC  US n           *   Double/Triple height printing
  477.         ESC  ' ' n          *   Add n dots between characters
  478.         ESC  '!' n         S>   Set master print mode
  479.         ESC  '!' n         I*   Select international char set
  480.         ESC  '#'            *   Accept bit 8 as is
  481.         ESC  '$' n1 n2      >   Absolute horizontal position
  482.         ESC  '%' n         S*   Download character set control
  483.         ESC  '%4' n        I>   Onetime n/360 line feed
  484.         ESC  '%8' n        I>   Begin n/360 line spacing
  485.         ESC  '%G'          I>   Begin Italics
  486.         ESC  '%H'          I>   End Italics
  487.         ESC  '&' 0 ...      *   Define download characters
  488.         ESC  '(' n          *   Select NLQ/HSD print quality
  489.         ESC  '*' n ...      >   Select 8 bit graphics mode n
  490.         ESC  '+' n1 .. .   S*   Macro instruction commands
  491.         ESC  '+' n         I>   Begin n/360 line spacing
  492.         ESC  '-' 1          >   Underline on
  493.         ESC  '-' 0          >   Underline off
  494.         ESC  '/' n          *   Select vertical tab channel n
  495.                            DMPLAS  Version 1.1                          9
  496.     ======================================================================
  497.  
  498.     PART 3. PRINTER CONTROL CODES (continued)
  499.     
  500.         Code/Sequence     Flag  Printer Function Performed
  501.         ~~~~~~~~~~~~~     ~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  502.         ESC  '0'            >   Set line spacing to 1/8"
  503.         ESC  '1'            >   Set line spacing to 7/72"
  504.         ESC  '2'           S>   Set 6 lpi
  505.         ESC  '2'           I>   Execute  ESC 'A' n
  506.         ESC  '3' n          >   Set line spacing to n/216"
  507.         ESC  '4'           S>   Select italic characters
  508.         ESC  '4'           I*   Set TOF here (IBM mode)     
  509.         ESC  '5'            >   Cancel italic characters
  510.         ESC  '5' 1          >   Auto Linefeed on
  511.         ESC  '5' 0          >   Auto Linefeed off
  512.         ESC  '6'            *   Select IBM character set #2
  513.         ESC  '6'            *   128-159,255 = Italic Internat
  514.         ESC  '7'            *   Select IBM character set #1
  515.         ESC  '7'            *   128-159,255 = contol codes 0-32,127
  516.         ESC  '8'            *   Disable paper out detector
  517.         ESC  '9'            *   Enable paper out detector
  518.         ESC  ':'            >   Set 12 cpi (Elite)
  519.         ESC  ':' 0 n 0      *   Copy ROM font n into RAM
  520.         ESC  '<'            *   Set uni-directional print
  521.         ESC  '='            *   Set bit 8 to zero
  522.         ESC  '='n n 20 /1   *   Define download characters
  523.         ESC  '>'            *   Set bit 8 to one
  524.         ESC  '?' n0 n1      *   Redefine graphic mode
  525.         ESC  '@'            >   Reset printer
  526.         ESC  'A' n         S>   Set line spacing n/72" immediate
  527.         ESC  'A' n         I>   Set line spacing n/72" for ESC '2'
  528.         ESC  'B' n1 .. .0   *   Set vertical tab positions
  529.         ESC  'C' 0 n        *   Set page length n inches
  530.         ESC  'C' n          *   Set page length n lines
  531.         ESC  'D' n1 .. .0   >   set variable horizontal tab positions
  532.         ESC  'E'            >   Emphasized printing on (Bold)
  533.         ESC  'F'            >   Emphasized printing off (Bold)
  534.         ESC  'G'            >   Boldface Double strike on
  535.         ESC  'H'            >   Boldface Double strike off
  536.         ESC  'I' n         S*   Character set selection
  537.         ESC  'I' n         I>   Set Master print mode
  538.         ESC  'J' n          >   Onetime linefeed of n/216"
  539.         ESC  'K' n1 .. .    >   Normal density graphics 60 dpi
  540.         ESC  'L' n1 .. .    >   Double density graphics 120 dpi
  541.         ESC  'M'            >   Set 12 cpi (Elite)
  542.         ESC  'N' n          >   Set bot marg n lines = skip perf
  543.         ESC  'O'            >   Cancel top & bottom margins
  544.         ESC  'P'           S>   Set 10 cpi (Pica)
  545.         ESC  'P' 1/0       I>   Set Proportional on/off
  546.         ESC  'Q' n         S>   Set right margin  col n
  547.         ESC  'Q' 3,35, 36  I*   Deselect printer
  548.         ESC  'R'            *   Reset horiz and vert tabs
  549.         ESC  'R' n          *   Select character set n
  550.         ESC  'S' n          >   Set superscript/subscript on
  551.         ESC  'T'            >   Set superscript/subscript off
  552.     10                       DMPLAS  Version 1.1 
  553.     ======================================================================
  554.  
  555.     PART 3. PRINTER CONTROL CODES (continued)
  556.     
  557.         Code/Sequence     Flag  Printer Function Performed
  558.         ~~~~~~~~~~~~~     ~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
  559.         ESC  'U' n          *   Unidirectional print control
  560.         ESC  'V' n dat a    *   Repeat data n times (LQ-1500)
  561.         ESC  'V' NUL        *   Cancel repeat data (LQ-1500)
  562.         ESC  'W' 1/0        >   Expanded print on/off
  563.         ESC  'X'            *   Cancel all WP modes except propor.
  564.         ESC  'X' l r        >   Set left & right margins
  565.         ESC  'Y' n1 .. .    >   Dble dens/dble speed graphics
  566.         ESC  'Z' n1 .. .    >   Quadruple density graphics  
  567.         ESC  '[' n         S>   Begin n/360 line spacing
  568.         ESC  '[' n ...     I*   Print double high/wide
  569.         ESC  '\' n1 n2     S>   Relative horizontal position
  570.         ESC  '\' n1 n2     I*   Print all codes as characters
  571.         ESC  ']' n          >   Onetime linefeed of n/360"
  572.         ESC  '^' 0/1 . ..   *   60/120 dpi graphics
  573.         ESC  '^' n ...      *   9 pin graphics
  574.         ESC  '^' n          *   Print char(n) from all char chart
  575.         ESC  '_' 1/0        *   Overlining on/off
  576.         ESC  'a' n          *   Align or center printing
  577.         ESC  'b' n ... 0    *   Set vertical tabs in channel
  578.         ESC  'c' n          *   Set top margin n lines
  579.         ESC  'd' n1 n2      >   Relative horizontal position
  580.         ESC  'e' 0/1 n      *   Set H/V tabs every n chars
  581.         ESC  'e' 0 n        >   Set horizontal tabs every n columns
  582.         ESC  'e' 1 n        *   Set verical tabs every n lines
  583.         ESC  'f' 0 n        >   Set print position to col n
  584.         ESC  'f' 1 n        >   Printer to current line + n
  585.         ESC  'g'            >   Set pitch to 15 cpi (Micron)
  586.         ESC  'h' n          *   Enlarged characters on/off
  587.         ESC  'i' n          *   Set immediate printing on/off
  588.         ESC  'j' n         S>   Send one reverse LF n/216" (STD)
  589.         ESC  'j'           I*   Deselect printer
  590.         ESC  'k' n          *   Select font/typeface n
  591.         ESC  'l' n          >   Set left margin to column n
  592.         ESC  'm'            *   Select Triple width printing
  593.         ESC  'm' 1/0        *   Select/Cancel HX-20 graphic symbols
  594.         ESC  'p' 1          >   Select proportional printing
  595.         ESC  'p' 0          >   Cancel proportional printing
  596.         ESC  'q' n          *   Select character style n
  597.         ESC  'r' n          *   Select color to print
  598.         ESC  'r' n          *   Set top margin n lines
  599.         ESC  's' n          *   Set printing speed
  600.         ESC  't' n          *   Select graphic/italic chars set
  601.         ESC  'v' n          *   Custom character set n
  602.         ESC  'w' 0/1        *   Double high off/on
  603.         ESC  'x' 1/0        *   Set Near Letter Quality on/off
  604.         ESC  'y' n          *   Select quasi 8 bit graphics
  605.         ESC  '~' 0/1        *   Print normal/slashed zero
  606.                            DMPLAS  Version 1.1                          11
  607.     ======================================================================
  608.  
  609.     PART 4. SOME HINTS AND TIPS
  610.     
  611.     4.1  SCREEN DUMPS
  612.     
  613.     Text screen prints (from pressing the Shift-PrtSc key) on some dot 
  614.     matrix printers as well as laser printers have special characters 
  615.     printed instead of true lines as shown on the screen. See 4.1 for a 
  616.     solution to this problem.
  617.     
  618.     The program GRAPHICS.COM included with DOS before version 5 worked 
  619.     only with CGA screens and IBM/Epson dot matrix printers. DMPLAS /A 
  620.     allows these screen dumps to be printed on HP LaserJet compatibles. 
  621.     Unfortunately GRAPHICS.COM will still only work properly with CGA 
  622.     graphic screens. There are other programs that handle EGA, VGA, and 
  623.     Hercules graphics and DOS 5's GRAPHICS.COM accomidates these as well 
  624.     as HP LaserJets.
  625.     
  626.     For DMPLAS to be properly effective it should be loaded (DMPLAS /A) 
  627.     before GRAPHICS.COM.                                                       
  628.     ~~~~~~
  629.     
  630.     
  631.     4.2  IBM LINE DRAWING CHARACTERS
  632.     
  633.     IBM Graphics and IBM Proprinters are capable of printing the IBM line 
  634.     drawing characters. The Epson FX is effectively compatible with the 
  635.     IBM Graphics printers except that italic characters are printed 
  636.     instead. This is why text screen dumps have "e"s and other characters 
  637.     instead of lines.
  638.     
  639.     There are 2 solutions to this problem.
  640.     
  641.     1) DOWNLOAD CO120RPN.SFP from the DMPLASFN font set pack.
  642.     
  643.     2) With a HP LaserJet series II the following will change the 
  644.     character set of the native font from Roman 8 (with italic characters) 
  645.     to IBM-US (with line drawing characters).
  646.     
  647.        Hold down the menu key until the display reads "SYM SET = Roman 8*"
  648.     
  649.        Press the + key until the display reads "SYM SET = IBM-US"
  650.     
  651.        Press the Enter/Reset Menu key to make the IBM-US the new default set.
  652.        (The display marks this with the asterisk from Roman 8)
  653.     
  654.        Hold down the Continue/Reset key until the display reads "07 RESET"
  655.     
  656.     You only need do this once. After this the LaserJet will power-on with 
  657.     the IBM-US symbol set active.
  658.     12                       DMPLAS  Version 1.1
  659.     ======================================================================
  660.  
  661.     4.3  USING DMPLAS WITH A SPOOLER
  662.     
  663.     Since a spooler can effectively hold up the physical printing of the 
  664.     output until the laser printer can catch up, we recommend that you 
  665.     load DMPLAS as a TSR after you load your spooler software into memory.
  666.                          ~~~~~
  667.     
  668.     If your spooler works as a device driver (in CONFIG.SYS) there DMPLAS 
  669.     should work fine also.
  670.     
  671.     
  672.     4.4  USING DMPLAS ON A LAN
  673.     
  674.     Due to the way DMPLAS achieves activation and de-activation, DMPLAS 
  675.     must be loaded on remote terminals (where the programs are actually 
  676.     run) rather than on the file server (where the printer is attached). 
  677.     DMPLAS will then translate the output to the HP LaserJet standard 
  678.     before the LAN transfers the output over the wires to the printer.
  679.     
  680.     
  681.     4.5  USING DMPLAS WITH WINDOWS 3
  682.     
  683.     DMPLAS works fine when used with DOS programs being run on the DOS 
  684.     shell under Windows. DMPLAS can either be loaded before WIN is 
  685.     executed or from the DOS shell after the DOS icon has been clicked.  
  686.     
  687.     DMPLAS can also be included in a batch file executed by a .PIF 
  688.     routine. In this case there is no need to deactivate DMPLAS after the 
  689.     program has executed.
  690.     
  691.     
  692.     Please remember that even in a multi-tasking situation, the activation 
  693.     and deactivation of DMPLAS via   DMPLAS /A   and   DMPLAS /D    takes 
  694.     place immediately. If there is print left in a spooler or being 
  695.     outputted by another program running in the background the changes to 
  696.     the status of DMPLAS might affect the final output to the printer. 
  697.     Before issuing a DMPLAS command the system should be "quiet".
  698.